package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;

/**
 * @author zby
 * @created 2024-06-24 21:43
 * @description 异常抛出工具类
 */
public class Exceptions {

    /**
     * 抛出业务异常
     *
     * @param code 枚举接口
     */
    public static void cast(Code code) {
        throw new StockException(code);
    }


}
